<template>
  <div>
    <div v-if="statusList.length < 0">
      <span v-for="(item, index) in list" :key="index">{{ index + 1 }}: {{ item }}</span>
    </div>
    <div v-else>
      <span v-for="(item, index) in statusList" :key="index" >{{ index + 1 }}.{{ item.result }}</span>
    </div>
  </div>
</template>

<script>
export default {
  props: ["statusList"],
  data() {
    return {
      list: ["", "", "", "", ""],
    };
  },
};
</script>

<style scoped>
.right {
  color: green;
}

.error {
  color: red;
}

.undo {
  color: #ccc;
}
</style>
